package com.springboot.admin.acutuator.info;

import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;
import org.springframework.stereotype.Component;

import java.util.Collections;

/************************************************************************
 *
 *    Copyright  Copyright 2021 Google Inc.
 *    File Name: AppInfoInfoContributor
 *    Description: 描述
 *
 *    Version: V1.0
 *    Author: Fuc
 *    Create Time: 2021-01-12
 *
 *************************************************************************/

@Component
public class AppInfoInfoContributor implements InfoContributor {

  @Override
  public void contribute(Info.Builder builder) {
    builder
        .withDetail("msg", "你好")
        .withDetail("hello", "atguigu")
        .withDetails(Collections.singletonMap("world", "666600"));
  }
}
